﻿<Window x:Class="LFSRecord2.View.Dialogs.ExportAEDialogBox"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="After Effects Export Selection" Width="350" Height="270"
        ShowInTaskbar="False" ResizeMode="NoResize"
        WindowStartupLocation="CenterOwner">
    <Grid Background="#FFF5ECEC">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="150" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <Border Margin="2" Padding="2" BorderThickness="2" Grid.Column="0" BorderBrush="#FF8D8D8D">
            <StackPanel Orientation="Vertical">
                <Label HorizontalAlignment="Center">Select layers to export :</Label>
                <ListBox Name="listBox1" 
                         Width="125" Height="150" 
                         HorizontalAlignment="Center" VerticalAlignment="Top" 
                         SelectionMode="Multiple"
                         ItemsSource="{Binding AvailableLayers}"
                         SelectionChanged="LayerSelectionBox_SelectionChanged"/>
            </StackPanel>
        </Border>
        
        <Grid Grid.Column="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="60" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>

            <Border Margin="2" Padding="2" BorderThickness="2" Grid.Row="0" BorderBrush="#FF8D8D8D">
                <StackPanel Orientation="Vertical">
                    <TextBlock TextWrapping="Wrap" Margin="0,5,0,0">Enter the dimensions of your movie (the screendumps), so the exporter can set correct FOV and zoom values.</TextBlock>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>

                        <StackPanel Grid.Column="0" Orientation="Vertical">
                            <Label>Width</Label>
                            <TextBox Margin="5,0" Text="{Binding MovieWidth}" />
                        </StackPanel>
                        <StackPanel Grid.Column="1" Orientation="Vertical">
                            <Label>Height</Label>
                            <TextBox Margin="5,0" Text="{Binding MovieHeight}" />
                        </StackPanel>
                    </Grid>
                </StackPanel>
            </Border>

            <Border Margin="2" Padding="2" BorderThickness="2" Grid.Row="1" BorderBrush="#FF8D8D8D">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>

                    <Label Grid.ColumnSpan="2" HorizontalAlignment="Center">-Frame Range-</Label>
                    <StackPanel Grid.Column="0" Orientation="Vertical">
                        <Label>Start</Label>
                        <TextBox Margin="5,0" Text="{Binding StartFrame}" />
                    </StackPanel>
                    <StackPanel Grid.Column="1" Orientation="Vertical">
                        <Label HorizontalAlignment="Right">End</Label>
                        <TextBox Margin="5,0" Text="{Binding EndFrame}" />
                    </StackPanel>
                </Grid>
            </Border>

            <Border Margin="2" Padding="2" BorderThickness="2" Grid.Row="2" BorderBrush="#FF8D8D8D">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Button Grid.Column="0" Name="cancelButton" IsCancel="True" Width="54" Height="22">Cancel</Button>
                    <Button Grid.Column="1" Name="okButton" Click="okButton_Click" IsDefault="True" Width="54" Height="22">Export</Button>
                </Grid>
            </Border>
        </Grid>
    </Grid>
</Window>
